﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using NewsService.Messages;
using ServiceNews.Messages;

namespace NewsService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IActionNewsService" in both code and config file together.
    [ServiceContract]
    public interface IActionNewsService
    {

        /// <summary>
        /// Gets the token.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        [OperationContract]
        TokenResponse GetToken(TokenRequest request);

        /// <summary>
        /// Sets the sites.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        [OperationContract]
        NewsLogResponse SetNewsLogs(NewsLogRequest request);

        /// <summary>
        /// Gets the sites.
        /// </summary>
        /// <param name="request">The request.</param>
        /// <returns></returns>
        [OperationContract]
        NewsLogResponse GetNewsLogs(NewsLogRequest request);
    }
}
